home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Komputer 2010 April
/
PCWorld0410.iso
/
hity wydania
/
Bank smakow
/
BankSmakow.air
/
BankSmakow.swf
/
scripts
/
_WindowedApplicationStyle.as
< prev
next >
Wrap
Text File
|
2009-12-16
|
3KB
|
66 lines
package
{
import mx.core.IFlexModuleFactory;
import mx.skins.halo.ApplicationTitleBarBackgroundSkin;
import mx.skins.halo.StatusBarBackgroundSkin;
import mx.skins.halo.WindowBackground;
import mx.skins.halo.WindowCloseButtonSkin;
import mx.skins.halo.WindowMaximizeButtonSkin;
import mx.skins.halo.WindowMinimizeButtonSkin;
import mx.skins.halo.WindowRestoreButtonSkin;
import mx.styles.CSSStyleDeclaration;
import mx.styles.StyleManager;
public class _WindowedApplicationStyle
{
public function _WindowedApplicationStyle()
{
super();
}
public static function init(param1:IFlexModuleFactory) : void
{
var fbs:IFlexModuleFactory = param1;
var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration("WindowedApplication");
if(!style)
{
style = new CSSStyleDeclaration();
StyleManager.setStyleDeclaration("WindowedApplication",style,false);
}
if(style.defaultFactory == null)
{
style.defaultFactory = function():void
{
this.statusTextStyleName = "statusTextStyle";
this.minimizeButtonSkin = WindowMinimizeButtonSkin;
this.gripperPadding = 3;
this.borderStyle = "solid";
this.restoreButtonSkin = WindowRestoreButtonSkin;
this.closeButtonSkin = WindowCloseButtonSkin;
this.highlightAlphas = [1,1];
this.cornerRadius = 8;
this.titleBarBackgroundSkin = ApplicationTitleBarBackgroundSkin;
this.backgroundImage = WindowBackground;
this.borderThickness = 1;
this.buttonPadding = 2;
this.statusBarBackgroundColor = 13421772;
this.titleBarButtonPadding = 5;
this.buttonAlignment = "auto";
this.titleTextStyleName = "titleTextStyle";
this.borderColor = 10921638;
this.roundedBottomCorners = false;
this.titleAlignment = "auto";
this.showFlexChrome = true;
this.titleBarColors = [16777215,12237498];
this.gripperStyleName = "gripperSkin";
this.maximizeButtonSkin = WindowMaximizeButtonSkin;
this.backgroundColor = 12632256;
this.statusBarBackgroundSkin = StatusBarBackgroundSkin;
};
}
}
}
}